package com.lastproject.ejb.dao;

import java.util.List;

import javax.ejb.Remote;

import com.lastproject.dto.RatingDTO;



@Remote
public interface RatingDAORemote {


	void create(RatingDTO entity);
	void edit(RatingDTO entity);
	void remove(RatingDTO entity);
	RatingDTO findById(Object id);
	public List<RatingDTO> getAll();
	public List<RatingDTO> getAllByBookId(int id);
	List <RatingDTO> getAllByUserIdAndBookId(int userId, int bookId);
}
